package com.example.demo.core.model;

/**
 * @author yujie
 * @date 2021-04-19 21:12
 */
public enum CodeEnum {
    /**
     * 枚举
     */
    SUCCESS(200, ""),
    SIGN_ERROR(401, "登录异常，请重新登陆"),
    NULL_ERROR(404, "参数为空"),
    PER_ERROR(403, "权限错误"),
    SYS_ERROR(500, "系统错误");

    /**
     * 状态码
     */
    private int status;
    /**
     * 提示语
     */
    private String message;

    /**
     * @param status 状态码
     * @param message 提示语
     */
    CodeEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }

    CodeEnum() {

    }

    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }
}
